<?php

class LearningObject
{

	private $name_;
	private $header_;
	private $footer_;
	private $credits_;
	private $menu_;
	private $pages_;
	
	public function __construct()
	{
		$this->name_ = "";
		$this->header_ = new SimpleImage();
		$this->footer_ = new SimpleImage();
		$this->credits_ = new Credits();
		$this->menu_ = new Menu();
		$this->pages_ = array();
	}

	public function getName()
	{
		return $this->name_;
	}
	
	public function setName( $name )
	{
		$this->name_ = $name;
	}
	
	public function getHeader()
	{
		return $this->header_;
	}
	
	public function setHeader( $header )
	{
		$this->header_ = $header; 
	}
	
	public function getFooter()
	{
		return $this->footer_;
	}
	
	public function setFooter( $footer )
	{
		$this->footer_ = $footer; 
	}
	
	public function getCredits()
	{
		return $this->credits_;
	}
	
	public function setCredits( $credits )
	{
		$this->credits_ = $credits; 
	}
	
	public function getMenu()
	{
		return $this->menu_;
	}
	
	public function setMenu( $menu )
	{
		$this->menu_ = $menu; 
	}
	
	public function getPages()
	{
		return $this->pages_;
	}
	
	public function setPages( $pages )
	{
		$this->pages_ = $pages; 
	}

	public function getPage( $id )
	{
		foreach( $this->pages_ as $p )
		{
			if( $p->getId() == $id )
				return $p;
		}
	}
	
	
}
?>